Developer --> Technical Publications
PATH Hardware Documentation > Device Managers and Drivers > ATA Devices > ATA Device Software Guide


ATA_ResetBus

The ATA_ResetBus function performs a soft reset operation to the selected ATA bus. The ATA interface doesn't provide a way to reset individual units on the bus. Consequently, all devices on the bus are reset.

IMPORTANT
This function should be used with caution since it may terminate any active requests to devices on the bus.

The manager function code for the ATA_ResetBus function is $11.

The parameter block associated with this function is defined below:

typedef struct /* ATA reset structure */
{
ataPBHdr /* ataPBHdr parameter block */
SInt8 Status; /* <-- Last ATA status */
/* register image */
SInt8 Reserved2; /* Reserved */
UInt16 Reserved[23]; /* Reserved */
} ataResetBus;

Field descriptions

ataPBHdr
See the definition of the ataPBHdr parameter block.
Status
This field contains the last device status register image following the bus reset. See the ATA-2 specification for definitions of the status register bits.
Reserved[23]
This field is reserved. To ensure future compatibility, all reserved fields should be set to 0.
RESULT CODES

See Table A-1 for possible result codes returned by the ATA Manager.


© 1999 Apple Computer, Inc. — (Last Updated 30 Oct 97)

Previous | Back Up One Level | Next | Show Frames | Hide Frames